
<div class="userbox">
  <h2>我的关注</h2>
  <div class="left left0 width100">
  <ul class="nav nav-tabs">
  <li {{if $type==1}} class="active"{{/if}}><a href="main.php?act=user&user_act=wishlist&type=1" >商品</a></li>
  <li {{if $type==2}} class="active"{{/if}} ><a href="main.php?act=user&user_act=wishlist&type=2" >店铺</a></li>
 
 </ul>
  
  {{if $type==1}}
  {{foreach from=$wishlist item=list key=key}}
  {{$goods = $list.goods}}
    <table class="order">
      <caption class="user_tro">
       时间: <span class="order_colo">{{$list.add_time}}</span> 
      </caption>
      <tbody>
        <tr class="user_trs">
          <td class="width15"><a title="{{$goods.goods_name}}" href="goods.php?id={{$goods.goods_id}}"><img src="{{$goods.goods_thumb}}"></a></td>
          <td class="width22" width="40%"><a title="{{$goods.goods_name}}" href="goods.php?id={{$goods.goods_id}}">{{$goods.goods_name}}</a> 售价 : <span class="red">{{$goods.shop_priced}}</span> 青币 </td>
          <td class="width30"></td>
          <td class="width26"><a  href="main.php?act=user&user_act=wishlistdel&id={{$list.wishlist_id}}" class="btn btn-success f_right">取消关注</a></td>
        </tr>
      </tbody>
    </table>
    {{/foreach}}
  {{else}}
  
  {{foreach from=$wishlist item=list key=key}}
  {{$cat = $list.cat}}
    <table class="order">
      <caption class="user_tro">
       时间: <span class="order_colo">{{$list.add_time}}</span> 
      </caption>
      <tbody>
        <tr class="user_trs">
          <td class="width15"><a title="{{$cat.cat_name}}" href="category.php?cat_id={{$cat.cat_id}}"><img src="{{$cat.thumb}}"></a></td>
          <td class="width22" width="40%"><a title="{{$cat.cat_name}}" href="category.php?cat_id={{$cat.cat_id}}">{{$cat.cat_name}}</a></td>
          <td class="width30"></td>
          <td class="width26"><a  href="main.php?act=user&user_act=wishlistdel&id={{$list.wishlist_id}}" class="btn btn-success f_right">取消关注</a></td>
        </tr>
      </tbody>
    </table>
    {{/foreach}}
  
    
  {{/if}}
  </div>
  {{include file="../pager.htm"}} 
  <!--right end--> 
  
</div>
